/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ecouteurs;

import controleur.Controleur;
import controleur.ControleurParcours;
import ia_multiagent1.Agent;
import ia_multiagent1.LogAgent;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.util.Vector;
import javax.swing.JTextField;
import vue.JPanelGrid;

/**
 *
 * @author Harakan
 */

public class EcouteurStartParcours implements MouseListener{
 
    private Agent agent;
    private Vector<LogAgent> log;
    private JPanelGrid grid;
    private JTextField txt;
    
    public EcouteurStartParcours(Agent agent, Vector<LogAgent> log, JPanelGrid grid, JTextField txt) {
        this.agent= agent;
        this.log = log;
        this.grid = grid;
        this.txt = txt;
    }

    public void mouseClicked(MouseEvent e) {
        new Thread(new ControleurParcours(agent, log, grid, txt)).start();
    //    Controleur.run();
    }

    public void mousePressed(MouseEvent e) {
      //   throw new UnsupportedOperationException("Not supported yet.");
      
    }

    public void mouseReleased(MouseEvent e) {
     //   throw new UnsupportedOperationException("Not supported yet.");
    }

    public void mouseEntered(MouseEvent e) {
    //    throw new UnsupportedOperationException("Not supported yet.");
    }

    public void mouseExited(MouseEvent e) {
    //    throw new UnsupportedOperationException("Not supported yet.");
    }

}
